<template>
    <div>
        <el-button v-if="value=='button'">按钮</el-button>
        <el-input v-if="value=='input'">输入框</el-input>
    </div>
</template>

<script>
    export default {
        name: "widget",
        model: {
            prop: "value",
            event: "input"
        },
        props: {
            value: {
                type: String,
                default: () => {
                }
            },
        }
    }
</script>

<style scoped>

</style>